package m1.server.config.component.componentInterface;

import m2.component.ComponentInterface;
import m2.service.ProvidedService;

public class DatabaseInterfaceProvided extends ComponentInterface{

	/**
	 * 
	 */
	public DatabaseInterfaceProvided(){
		
		//********queryService********
		ProvidedService queryService = new ProvidedService();
		queryService.setNameService("queryService");
		setService(queryService);
				
		//********securityManagementReceiveService********
		ProvidedService securityManagementReceiveService = new ProvidedService();
		securityManagementReceiveService.setNameService("securityManagementReceiveService");
		setService(securityManagementReceiveService);
				
	}

	@Override
	/**
	 * 
	 */
	public void buildService() {
		serviceUsePorts("queryService", "Query");
		serviceUsePorts("securityManagementReceiveService", "SecurityManagementReceive");
	}
}
